package com.example.design.patterns.geekbang.行为型.职责链模式.中途停止.实现方式一.refactor;

// 使用举例
public class Test {
    public static void main(String[] args) {
        HandlerChain chain = new HandlerChain();
        chain.addHandler(new HandlerA());
        chain.addHandler(new HandlerB());
        chain.handle();
    }
}
